package io.jpress.core.editorAddon;

import com.jfinal.core.Controller;

import java.util.function.Function;

public class EditorAddonInfo {

    private String id;
    private String htmlFile;

    //渲染条件
    private Function<Controller,Boolean> renderCondition;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getHtmlFile() {
        return htmlFile;
    }

    public void setHtmlFile(String htmlFile) {
        this.htmlFile = htmlFile;
    }

    public Function<Controller, Boolean> getRenderCondition() {
        return renderCondition;
    }

    public void setRenderCondition(Function<Controller, Boolean> renderCondition) {
        this.renderCondition = renderCondition;
    }
}
